package com.wf.demo.sys.controller;

import com.wf.demo.sys.pojo.Menu;
import com.wf.demo.sys.pojo.Role;
import com.wf.demo.sys.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Auther: wf
 * @Date: 2019/12/31 11:20
 * @Description:
 */
@RestController
public class MenuController {
    @Autowired
    MenuService menuService;
    @GetMapping("/menus")
    public List<Menu> list(){
        return menuService.list();
    }
}
